//
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2011
//
// Copyright: See COPYING file that comes with this distribution
//
#ifndef HITLIST_HIT_ITEM_JSON_HPP
#define HITLIST_HIT_ITEMsvn _JSON_HPP

#include <fas/misc/json.hpp>
#include <fas/misc/command/basic_command.hpp>

#include "names.hpp"
#include "hit_item.hpp"

namespace aj = ::fas::json;
namespace ap = ::fas::pattern;

/** @typedef json-сериалиатор для hit_item */
typedef
  aj::object<
    hit_item,
    ap::type_list_n<
      aj::member<n_id,  hit_item, user_id_t  , &hit_item::second_id>,
      aj::member<n_hits,  hit_item, size_t, &hit_item::hits>,
      aj::member<n_timeStamp, hit_item, time_t, &hit_item::time_stamp>
    >::type
  > hit_item_json;

#endif

